import { List, AddType, HousesList, Delete, DeleteAll } from "./type"
import { get, post } from "../request"

// 缴费列表
const feeList = (data: List) => {
	return get("fee/list", data);
}
// 添加缴费
const feeAdd = (data: AddType) => {
	return post("fee/add", data);
}
// 缴费单删
const feeDelete = (data: Delete) => {
	return get("fee/delete", data);
}
// 缴费批删
const feeDeleteAll = (data: DeleteAll) => {
	return post("fee/deleteall", data);
}
// 缴费类型
const feeType = () => {
	return get("feetype/list");
}
// 楼栋列表
const building = () => {
	return get("building/list");
}
// 房间列表
const houses = (data: HousesList) => {
	return get("houses/list", data);
}

export {
	feeList,
	feeAdd,
	feeType,
	houses,
	building,
	feeDelete,
	feeDeleteAll
}